# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Grigory Kirillov <txgk@bk.ru>
pkgname=newsraft
pkgver=0.6
pkgrel=0
pkgdesc="Feed reader with ncurses user interface"
url="https://codeberg.org/grisha/newsraft"
arch="all"
license="MIT"
options="!check" # no test suite
makedepends="
	ncurses-dev
	sqlite-dev
	curl-dev
	expat-dev
	yajl-dev
	gumbo-parser-dev
	meson
	samurai
	scdoc
	"
subpackages="$pkgname-doc"
source="https://codeberg.org/grisha/newsraft/archive/newsraft-$pkgver.tar.gz"
builddir="$srcdir/newsraft"

build() {
	abuild-meson --buildtype release builddir
	meson compile ${JOBS:+-j ${JOBS}} -C builddir
}

package() {
	DESTDIR="$pkgdir" meson install -C builddir
}

sha512sums="
f29fef617285748933394ede118ae1e7f6d817583c3a6c0b6918b3e6bef6d9c464dbca22edf74829253c1f38834d1a12b6f407702e173b2bc1ce158ab4342222  newsraft-0.6.tar.gz
"
